"""


# url位置   确认了url   方法
GET https://api5-normal-c-lq.amemv.com/aweme/v2/comment/list/?aweme_id=7087869323905191176&cursor=0&count=20&address_book_access=1&gps_access=1&forward_page_type=1&channel_id=0&city=110000&hotsoon_filtered_count=0&hotsoon_has_more=0&follower_count=0&is_familiar=0&page_source=0&user_avatar_shrink=64_64&aweme_author=MS4wLjABAAAArNcBc596MR8NMftLmT2BKP5vZZTck8A_CHnEppF4FgqBCkzCnWWK1-d1XK-EhYyy&item_type=0&os_api=23&device_type=MI+5s&ssmix=a&manifest_version_code=150301&dpi=270&uuid=510000000240831&app_name=aweme&version_name=15.3.0&ts=1651066957&cpu_support64=false&app_type=normal&appTheme=dark&ac=wifi&host_abi=armeabi-v7a&update_version_code=15309900&channel=aweGW&_rticket=1651066958145&device_platform=android&iid=149954411628327&version_code=150300&cdid=b6579ae6-4160-4f04-861a-49f85bc91792&openudid=5349b63325deaca4&device_id=1240669936419501&resolution=810*1440&os_version=6.0.1&language=zh&device_brand=Xiaomi&aid=1128&minor_status=0 HTTP/1.1
# headers位置
Host: api5-normal-c-lq.amemv.com
Connection: keep-alive
Cookie: uid_tt=45ff60f8e6f9b05ea164a0062756080b; sid_tt=3675311f016a43dc9f237dfacfc8fd30; sessionid=3675311f016a43dc9f237dfacfc8fd30; install_id=149954411628327; ttreq=1$9be5a54a38a57b255c96bfd0cd528c977a36adfe; sid_guard=3675311f016a43dc9f237dfacfc8fd30%7C1650713219%7C5184000%7CWed%2C+22-Jun-2022+11%3A26%3A59+GMT; passport_csrf_token=3a2c144fd71c084b01908eb1c84e718f; passport_csrf_token_default=3a2c144fd71c084b01908eb1c84e718f; odin_tt=e9a3aac3596a875e00d9e5e1ae0188880e58bbee87ed7835cae3a2d51a31b66c74a67b396671af2c300bd83bbd22cef283f5e6e41c59dc1da28efe70bfd370a303a4bde7fb68f6c4c93cca2f6a97f3e0
x-tt-dt: AAA4W44N2YPZLWVIUNWKLZ62W7UTDLYROUIOYS4X6LQKJHYV4ZLE54QIT6EWZ2CN4QGY75S6WOUAU2CA3WKS5MYAG4YHQEHHEP3BB4CC3DORCG6KJO3S4YREYQRZRI2T222BVFUE7Q7YBI2ZBKJWQIQ
passport-sdk-version: 18
X-Tt-Token: 003675311f016a43dc9f237dfacfc8fd300271e4ff2df2aef7ad52149c315524569f22a8bf90045a472ff28626fdab9cf2a5ea2d2ec4d3492274733064510aac45aa35f0ab7adc2e96ef31ec78cbfff7902536bd59e6f536906d91263a9ea1b219b3d-1.0.1
sdk-version: 2
X-SS-REQ-TICKET: 1651066958147
x-bd-kmsv: 1
X-SS-DP: 1128
x-tt-trace-id: 00-6b4272d30d46861fad802ad835300468-6b4272d30d46861f-01
User-Agent: com.ss.android.ugc.aweme/150301 (Linux; U; Android 6.0.1; zh_CN; MI 5s; Build/V417IR; Cronet/TTNetVersion:539f4bcf 2021-01-18 QuicVersion:47946d2a 2020-10-14)
Accept-Encoding: gzip, deflate, br
X-Argus: ll0khslUUkN78NbkUMlin1WT9eksSlVwNcRAeJD/3ruXTrvXOqVmcIeaMQhvbh93xJryJcWAw0rYTkQgVJN4nCAa9L0tDyzLajmNU2hQGmrSk2FggJZ15grAq3rSpWj0SvbGJIG9B0BWqUsQ0WiKpCfMg1g4IJnngAnmf+zHtLjHJSQp7I9YtWLNxVpAWFPRTLny+c3+you8PKLg4mvVR8Qu61Xzo225FGl+oFCNb6i+RWXSbMCO1AGZ0m8P4fXWAdsXxSQ1hm6uQRjDiKmt1wPDY/QqzKEPQwTsF6GpX5OD3sYRCiqUs433pHf25xOYIP+hW+a1yJDrsWD8kkz4FTvn
X-Gorgon: 0404e0894101a2ed55db7a862dcd0e0d8e4d336e60e2becbf17a
X-Khronos: 1651066958
X-Ladon: RoYEfExV6HfdZx3A6GpqXGmTMcAmTjZz2q7+SlaDn1LgonVF
X-Tyhon: XX4QlbohI7uOLiuqmzlhhpsraYSsVGXujlA3Dls=
data位置
"""

import requests
import jsonpath

# url = "https://api5-normal-c-lq.amemv.com/aweme/v2/comment/list/?aweme_id=7087869323905191176&cursor=0&count=20&address_book_access=1&gps_access=1&forward_page_type=1&channel_id=0&city=110000&hotsoon_filtered_count=0&hotsoon_has_more=0&follower_count=0&is_familiar=0&page_source=0&user_avatar_shrink=64_64&aweme_author=MS4wLjABAAAArNcBc596MR8NMftLmT2BKP5vZZTck8A_CHnEppF4FgqBCkzCnWWK1-d1XK-EhYyy&item_type=0&os_api=23&device_type=MI+5s&ssmix=a&manifest_version_code=150301&dpi=270&uuid=510000000240831&app_name=aweme&version_name=15.3.0&ts=1651066957&cpu_support64=false&app_type=normal&appTheme=dark&ac=wifi&host_abi=armeabi-v7a&update_version_code=15309900&channel=aweGW&_rticket=1651066958145&device_platform=android&iid=149954411628327&version_code=150300&cdid=b6579ae6-4160-4f04-861a-49f85bc91792&openudid=5349b63325deaca4&device_id=1240669936419501&resolution=810*1440&os_version=6.0.1&language=zh&device_brand=Xiaomi&aid=1128&minor_status=0"
#
# headers = {
#     "Host": "api5-normal-c-lq.amemv.com",
#     "Connection": "keep-alive",
#     "Cookie": "uid_tt=45ff60f8e6f9b05ea164a0062756080b; sid_tt=3675311f016a43dc9f237dfacfc8fd30; sessionid=3675311f016a43dc9f237dfacfc8fd30; install_id=149954411628327; ttreq=1$9be5a54a38a57b255c96bfd0cd528c977a36adfe; sid_guard=3675311f016a43dc9f237dfacfc8fd30%7C1650713219%7C5184000%7CWed%2C+22-Jun-2022+11%3A26%3A59+GMT; passport_csrf_token=3a2c144fd71c084b01908eb1c84e718f; passport_csrf_token_default=3a2c144fd71c084b01908eb1c84e718f; odin_tt=e9a3aac3596a875e00d9e5e1ae0188880e58bbee87ed7835cae3a2d51a31b66c74a67b396671af2c300bd83bbd22cef283f5e6e41c59dc1da28efe70bfd370a303a4bde7fb68f6c4c93cca2f6a97f3e0",
#     "x-tt-dt": "AAA4W44N2YPZLWVIUNWKLZ62W7UTDLYROUIOYS4X6LQKJHYV4ZLE54QIT6EWZ2CN4QGY75S6WOUAU2CA3WKS5MYAG4YHQEHHEP3BB4CC3DORCG6KJO3S4YREYQRZRI2T222BVFUE7Q7YBI2ZBKJWQIQ",
#     "passport-sdk-version": "18",
#     "X-Tt-Token": "003675311f016a43dc9f237dfacfc8fd300271e4ff2df2aef7ad52149c315524569f22a8bf90045a472ff28626fdab9cf2a5ea2d2ec4d3492274733064510aac45aa35f0ab7adc2e96ef31ec78cbfff7902536bd59e6f536906d91263a9ea1b219b3d-1.0.1",
#     "sdk-version": "2",
#     "X-SS-REQ-TICKET": "1651066958147",
#     "x-bd-kmsv": "1",
#     "X-SS-DP": "1128",
#     "x-tt-trace-id": "00-6b4272d30d46861fad802ad835300468-6b4272d30d46861f-01",
#     "User-Agent": "com.ss.android.ugc.aweme/150301 (Linux; U; Android 6.0.1; zh_CN; MI 5s; Build/V417IR; Cronet/TTNetVersion:539f4bcf 2021-01-18 QuicVersion:47946d2a 2020-10-14)",
#     "X-Argus": "ll0khslUUkN78NbkUMlin1WT9eksSlVwNcRAeJD/3ruXTrvXOqVmcIeaMQhvbh93xJryJcWAw0rYTkQgVJN4nCAa9L0tDyzLajmNU2hQGmrSk2FggJZ15grAq3rSpWj0SvbGJIG9B0BWqUsQ0WiKpCfMg1g4IJnngAnmf+zHtLjHJSQp7I9YtWLNxVpAWFPRTLny+c3+you8PKLg4mvVR8Qu61Xzo225FGl+oFCNb6i+RWXSbMCO1AGZ0m8P4fXWAdsXxSQ1hm6uQRjDiKmt1wPDY/QqzKEPQwTsF6GpX5OD3sYRCiqUs433pHf25xOYIP+hW+a1yJDrsWD8kkz4FTvn",
#     "X-Gorgon": "0404e0894101a2ed55db7a862dcd0e0d8e4d336e60e2becbf17a",
#     "X-Khronos": "1651066958",
#     "X-Ladon": "RoYEfExV6HfdZx3A6GpqXGmTMcAmTjZz2q7+SlaDn1LgonVF",
#     "X-Tyhon": "XX4QlbohI7uOLiuqmzlhhpsraYSsVGXujlA3Dls="
# }
# # 重点 "Accept-Encoding": "gzip, deflate, br",
# # 出现乱码 将此行表单删除
# response=requests.get(url=url,headers=headers).json()
# # print(response)
# content=jsonpath.jsonpath(response,"$..comments[*].text")
#
# # print(content)
#
# nickname=jsonpath.jsonpath(response,"$..nickname")
# # print(nickname)
#
# for i in zip(nickname,content):
#     print(i)